import request from './index'

/**
 * 下载导入模板
 */
function downTemplate () {
  const result = request({
    url: '/import/downTemplate',
    method: 'post',
    responseType: 'blob'
  })
  return result
}

/**
 * 导入用户信息
 * @param {*} data
 */
function importUserInfo (data) {
  const result = request({
    url: '/import/importUserInfo',
    method: 'post',
    data: data
  })
  return result
}

export default {
  downTemplate,
  importUserInfo
}
